import mitt from 'mitt'
/* eslint-disable  ts/consistent-type-definitions */
// 定义事件类型
type Events = {
  'upload-click': void
  'convert-click': void
  'refresh-nodes-click': void
  'refresh-tables-click': void
  'refresh-all-click': void
  'export-csv-click': void
  'export-xls-click': void
  'export-xlsx-click': void
  'about-click': void
}
// 创建事件总线
const eventBus = mitt<Events>()

export default eventBus
